package com.hzncc.flowable_diboot.payment.entity;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.lang.Double;
import java.math.BigDecimal;

import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.diboot.core.util.D;
import com.diboot.core.entity.BaseModel;
import com.diboot.core.entity.BaseEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 费用报销单 Entity 定义
 *
 * @author MyName
 * @version 1.0
 * @date 2024-10-30
 * Copyright © MyCorp
 */
@TableName("mdl_payment_cert_item")
@Getter
@Setter
@Accessors(chain = true)
public class PaymentCertItem extends BaseModel {
    private static final long serialVersionUID = 1926010170172140236L;
    /**
     * 租户
     */
    @NotNull(message = "租户不能为空")
    @TableField()
    private String tenantId;

    /**
     * 回款凭证ID
     */
    @NotNull(message = "回款凭证ID不能为空")
    @Length(max = 32, message = "回款凭证ID长度应小于32")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String paymentCertId;

    /**
     * 记账代码
     */
    @Length(max = 100, message = "记账代码长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String accountCode;

    /**
     * 总账科目
     */
    @Length(max = 100, message = "总账科目长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String accountTitle;

    /**
     * 成本中心
     */
    @TableField()
    private String costCenter;

    /**
     * 凭证货币金额
     */
    @TableField()
    private BigDecimal currencyAmount;

    /**
     * 特殊总账标识
     */
    @Length(max = 100, message = "特殊总账标识长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String ledgerFlag;

    /**
     * 分配编号
     */
    @Length(max = 100, message = "分配编号长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String assignmentCode;

    /**
     * 基准日期
     */
    @TableField()
    private LocalDateTime baseDate;

    /**
     * 客户编号
     */
    @Length(max = 100, message = "客户编号长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String customerCode;

    /**
     * 项目文本
     */
    @Length(max = 100, message = "项目文本长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String projectText;

    /**
     * 付款原因代码
     */
    @Length(max = 100, message = "付款原因代码长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String reasonCode;

    /**
     * 销售员工ID
     */
    @Length(max = 100, message = "销售员工ID长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String salerId;

    /**
     * 付款参考
     */
    @Length(max = 100, message = "付款参考长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String paymentNote;
    /**
     * 客户名称
     */
    @TableField
    private String customerName;


}